import * as types from './mutations-type';

const mutations = {
    [types.UPDATE_APIENTID](state, EntID) {
        state.APIEntID = EntID;
    },

    [types.UPDATE_PARAMS](state, params) {
        state.params = { ...state.params, ...params };
    },

    [types.UPDATE_BASE_URL](state, baseUrl) {
        state.baseUrl = { ...baseUrl };
    },

    [types.UPDATE_ENT_PARAMS](state, entSysParams) {
        state.entSysParams = { ...entSysParams };
    },

    [types.UPDATE_OPEN_USER_INFO](state, openUserInfo) {
        state.openUserInfo = openUserInfo;
    },

    [types.UPDAT_USER_INFO](state, userInfo) {
        state.userInfo = userInfo;
    },
}
export default mutations;